home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
- <xsl:output method="html"/>
-
- <xsl:template match="newspaper">
- <html>
- <head>
- <title>Newspaper</title>
- <style type="text/css">
- body {
- font: 80%/15pt "Trebuchet MS", Tahoma, sans-serif;
- margin: 0;
- margin-bottom: 12px;
- color: #1F1F1F;
- background-color: #EFEFEF;
- }
- a { color: #434343; }
- a:hover { color: #6F94C3; }
- a:visited { color: #747474; }
- span.nodescription { font-size: x-small; color: silver;}
- div.newspapertitle { font-weight: bold; font-size: 130%; text-align: center; margin: 16px 2px; }
- div.newsitem { border: 1px dashed #696969; padding: 10px 18px; margin: 7px 10px; background-color: #FDFDFD; }
- div.newsitemtitle { font-weight: bold; padding-bottom: 10px}
- div.newsitemcontent { text-align: justify; }
- div.newsitemfooter { font-size: xx-small; text-align: right; }
- </style>
- </head>
- <body>
- <div class="newspapertitle">
- <xsl:value-of select="title" disable-output-escaping="yes"/>
- </div>
- <xsl:variable name="newspapertype" select="@type"/>
- <xsl:for-each select="channel/item">
- <xsl:sort select="title"/>
- <div class="newsitem">
- <div class="newsitemtitle">
- <xsl:variable name="itemlink" select="link"/>
- <a href="{$itemlink}"><xsl:value-of select="title" disable-output-escaping="yes"/></a>
- </div>
- <div class="newsitemcontent">
- <xsl:value-of select="description" disable-output-escaping="yes"/>
- </div>
- <div class="newsitemfooter">
- <xsl:variable name="srclink" select="source/@htmlUrl"/>
- [ <xsl:value-of select="fd:dateDisplay"/> | <a href="{$srclink}"><xsl:value-of select="source"/></a>
- <!-- add link to comments if available -->
- <xsl:if test="comments">
- <xsl:variable name="commentlink" select="comments"/>
- <xsl:variable name="commentimg" select="'$IMAGEDIR$comments.gif'"/>
- | <a href="{$commentlink}"><img src="{$commentimg}" border="0" hspace="6"/></a>
- </xsl:if>
- <!-- add link to enclosure if available -->
- <xsl:if test="enclosure">
- <xsl:variable name="enclosurelink" select="enclosure/@url"/>
- <xsl:variable name="enclosureimg" select="'$IMAGEDIR$enclosure.gif'"/>
- | <a href="{$enclosurelink}"><img src="{$enclosureimg}" border="0" hspace="6"/></a>
- </xsl:if>
- ]
- </div>
- </div>
- </xsl:for-each>
- </body>
- </html>
- </xsl:template>
-
-
- </xsl:stylesheet>